package com.aizhixin.lab.task.entity;

import com.aizhixin.lab.common.entity.AbstractStringIdAndCreatedDateEntity;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.persistence.Column;
import javax.persistence.Entity;

@Entity(name = "t_task_file")
@ToString
public class TaskFile extends AbstractStringIdAndCreatedDateEntity {
    @Column(name = "task_id")
    @Getter
    @Setter
    private String taskId;
    @Column(name = "task_choice_id")
    @Getter
    @Setter
    private String taskChoiceId;
    @Column(name = "task_question_id")
    @Getter
    @Setter
    private String taskQuestionId;
    @Column(name = "file_name")
    @Getter
    @Setter
    private String fileName;
    @Column(name = "file_url")
    @Getter
    @Setter
    private String fileUrl;
    @Column(name = "file_key")
    @Getter
    @Setter
    private String fileKey;
    @Column(name = "source")
    @Getter
    @Setter
    private String source;//附件文件所属来源[question:题干,choice:选项,answer:答案,analysis:解析]
    @Column(name = "order_num")
    @Getter
    @Setter
    private Integer orderNum;
}
